<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01_作用域</title>
</head>
<body>
    <div id="app">
        <cpn v-show="isShow"></cpn>
    </div>
</body>

<template id="aa">
    <div>
        <h3>子组件标题,我能展示吗?</h3>
        <h3>子组件标题,我能展示吗?</h3>
        <h3>子组件标题,我能展示吗?</h3>
    </div>
</template>

<script src="../vue.js"></script>
<script>
    new Vue({
        el: '#app',
        data: {
          isShow: true
        },
        components: {
            'cpn': {
                template: '#aa',
                data(){
                    return {
                        isShow: false
                    }
                }
            }
        }
    })
</script>
</html>